package com.chencq.module.user.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.chencq.core.dao.BaseDao;
import com.chencq.core.service.base.impl.BaseServiceImpl;
import com.chencq.module.user.entity.User;
import com.chencq.module.user.service.UserService;

@Service
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService {
	@Autowired
	private BaseDao<User> userDao;

	@Override
	public User getUserByName(String username) {
		User user = userDao.getByHql("FROM User WHERE userName='" + username+"'");
		return user;
	}
}
